package com.koron.common.core.business.langfield.mapper;

import com.koron.common.core.business.langfield.bean.LangFormBean;
import com.koron.common.core.business.langfield.bean.LangFormTreeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LangFormBeanMapper {
    int deleteByPrimaryKey(String id);

    int insert(LangFormBean record);

    int insertSelective(LangFormBean record);

    LangFormBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(LangFormBean record);

    int updateByPrimaryKey(LangFormBean record);

    int updateBatch(List<LangFormBean> list);

    int updateBatchSelective(List<LangFormBean> list);

    int batchInsert(@Param("list") List<LangFormBean> list);

    // 表单下字段
    List<LangFormBean> queryByFormKey(@Param("formKey") String formKey, @Param("id") String id);

    // 字段树构建(简洁)
    List<LangFormTreeVo> queryTree(@Param("formIds") List<String> formIds);

    // 字段树构建(完整)
    List<LangFormBean> queryAllTree(@Param("formIds") List<String> formIds);

    // 模块下表单
    List<LangFormBean> queryByClassifyId(@Param("classifyId")String classifyId, @Param("formName")String formName);

    List<LangFormBean> queryAll();



}
